﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NullableExample
{
    class Program
    {
        static void Main(string[] args)
        {
            DateTime? bDay = null;//new DateTime(2012,1,1);

            //Console.WriteLine(bDay);

            Console.WriteLine("HasValue: {0}", bDay.HasValue);
            Console.WriteLine("GetValueOrDefault: {0}", bDay.GetValueOrDefault());
            Console.WriteLine("Value: {0}", bDay.Value);
            Console.ReadKey();
        }
    }
}
